import Layout from "@/layout";

const shopRouter = {
  path: "/shop/index",
  component: Layout,
  redirect: "noRedirect",
  name: "shop",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "商城管理",
    abbre: "商城",
    icon: "left_menu_shop",
    navigation: "/shop",
    id: "407"
  },
  children: [
    {
      path: "/shop/index",
      component: () => import("@/views/shop/index"),
      name: "shop_catering",
      hidden: false,
      meta: {
        title: "商城配置",
        noCache: true,
        navigation: "/shop/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/shop/aboutUs",
      component: () => import("@/views/shop/aboutUs"),
      name: "shop_about_us",
      hidden: false,
      meta: {
        title: "关于我们",
        noCache: true,
        navigation: "/shop/aboutUs",
        icon: "menu_big_data"
      }
    },
    {
      path: "/shop/service",
      component: () => import("@/views/shop/service"),
      name: "shop_service",
      hidden: false,
      meta: {
        title: "服务条款",
        noCache: true,
        navigation: "/shop/service",
        icon: "menu_big_data"
      }
    },
    {
      path: "/shop/afterSale",
      component: () => import("@/views/shop/afterSale"),
      name: "shop_after_sale",
      hidden: false,
      meta: {
        title: "售后规则",
        noCache: true,
        navigation: "/shop/afterSale",
        icon: "menu_big_data"
      }
    },
    {
      path: "/shop/registProtocol",
      component: () => import("@/views/shop/registProtocol"),
      name: "shop_regist_protocol",
      hidden: false,
      meta: {
        title: "注册协议",
        noCache: true,
        navigation: "/shop/registProtocol",
        icon: "menu_big_data"
      }
    }
  ]
};

export default shopRouter;
